package org.jash.shop.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class GoodsEntity {
    @SerializedName("errorCode")
    private Integer errorCode;
    @SerializedName("errorMessage")
    private String errorMessage;
    @SerializedName("data")
    private List<DataDTO> data;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("id")
        private Integer id;
        @SerializedName("goods_desc")
        private String goodsDesc;
        @SerializedName("goods_price")
        private Integer goodsPrice;
        @SerializedName("goods_icon")
        private String goodsIcon;
        @SerializedName("goods_detail_one")
        private String goodsDetailOne;
        @SerializedName("goods_category")
        private String goodsCategory;
        @SerializedName("goods_detail_two")
        private String goodsDetailTwo;
        @SerializedName("goods_sale_count")
        private Integer goodsSaleCount;
        @SerializedName("goods_stock_count")
        private Integer goodsStockCount;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getGoodsDesc() {
            return goodsDesc;
        }

        public void setGoodsDesc(String goodsDesc) {
            this.goodsDesc = goodsDesc;
        }

        public Integer getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(Integer goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getGoodsIcon() {
            return goodsIcon;
        }

        public void setGoodsIcon(String goodsIcon) {
            this.goodsIcon = goodsIcon;
        }

        public String getGoodsDetailOne() {
            return goodsDetailOne;
        }

        public void setGoodsDetailOne(String goodsDetailOne) {
            this.goodsDetailOne = goodsDetailOne;
        }

        public String getGoodsCategory() {
            return goodsCategory;
        }

        public void setGoodsCategory(String goodsCategory) {
            this.goodsCategory = goodsCategory;
        }

        public String getGoodsDetailTwo() {
            return goodsDetailTwo;
        }

        public void setGoodsDetailTwo(String goodsDetailTwo) {
            this.goodsDetailTwo = goodsDetailTwo;
        }

        public Integer getGoodsSaleCount() {
            return goodsSaleCount;
        }

        public void setGoodsSaleCount(Integer goodsSaleCount) {
            this.goodsSaleCount = goodsSaleCount;
        }

        public Integer getGoodsStockCount() {
            return goodsStockCount;
        }

        public void setGoodsStockCount(Integer goodsStockCount) {
            this.goodsStockCount = goodsStockCount;
        }
    }
}
